package jhsys.mc.smarthome.setting;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import jhsys.mc.R;
import jhsys.mc.basepage.MCBasepage;


public class Setting_About extends Activity{


	@Override
	public void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
	    setContentView(R.layout.home_setting_about);
	    PackageManager manager = this.getPackageManager();
	    PackageInfo info = null;
		try {
			info = manager.getPackageInfo(this.getPackageName(), 0);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	    Log.v("Setting_About", info.versionName);
	    
	    TextView versionName=(TextView)findViewById(R.id.setting_about02);
	    String ver=String.format(getString(R.string.aboutus), info.versionName);
	    versionName.setText(ver);
	}


}
